﻿@model DBTramite.BussinesEntities.T_Expediente

@{
    ViewBag.Title = "Create";
}

<h2>CrearExpediente</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset style="border: 2px groove #ccc; background: #ccc; width: 300px;">
        <legend><font size="3"><b style="color: #000">Datos del Documento a Ingresar</b></font></legend>

        <table border="1">

            <tr>
                @*<td><b style="color: #000">Destino</b></td>*@
                <td><div class="editor-label">
                <b style="color: #000">Destino
                @*@Html.LabelFor(model => model.destino)*@
                </div></td>
                <td><div class="editor-field">
                 @*   @(Html.Kendo().AutoComplete()
                        .Name("destino")
                        .DataTextField("nombre")
                        .Placeholder("Seleccionar un Destino...")
                        .MinLength(1)
                        .Filter("startswith") //aca nomas se pone starWish 
                        .HtmlAttributes(new { style = "width:auto" })
                        .DataSource(source =>  {
                            source.Read(read => { read.Action("GetDependencias", "T_Documento"); });
                        })
                    )*@
                @Html.EditorFor(model => model.destino)
                @Html.ValidationMessageFor(model => model.destino)
               </div></td>
            </tr>

            <tr> 
                <td><b style="color: #000">N°Expediente
                     <div class="editor-label">
                     @*@Html.LabelFor(model => model.numexpediente)*@
                     </div>
                </td>                
                <td>                    
                 <div class="editor-field">
                 @Html.EditorFor(model => model.numexpediente)
                 @Html.ValidationMessageFor(model => model.numexpediente)
                </div>
                </td> 
               @* <td><b style="color: #000">Fecha Ingreso
                    <div class="editor-label">
                    @Html.LabelFor(model => model.fechaingreso)
                    </div>
                </td>*@ 
                @*<td><b style="color: #000">@Html.LabelFor(model => model.fechaingreso)</td>*@
                      @*<div class="editor-field">*@
                  @*  @Html.EditorFor(model => model.fechaingreso)
                    @Html.ValidationMessageFor(model => model.fechaingreso)*@
                          <td><b style="color: #000">@Html.LabelFor(model => model.fechaingreso)</td>
                          <td>@DateTime.Now.ToString()</td>                    
                             
            </tr>       

            <tr>
                <td><b style="color: #000">Tipo Documento 
                    <div class="editor-label">
                   @* @Html.LabelFor(model => model.tipodocumento)*@
                    </div>
                </td>
                <td>
                     <div class="editor-label">
                         @Html.DropDownList("Expediente", new MultiSelectList(new[] { " ","OFICIO", "OFICIO MULTIPLE"
                        , "SOLICITUD", "RESOLUCION DIRECTORAL", "RESOLUCION RECTORAL"
                        , "RESOL. RECT. DE CONSEJO UNIV.", "INFORME", "MEMORANDUM"
                        , "MEMORANDUM MULTIPLE", "CITACION", "ELEVACION","CARTA"})))
                        @Html.ValidationMessageFor(model => model.tipodocumento)                        
                    </div>
                </td>
               @* <td>
                    <div class="editor-field">
                   @Html.EditorFor(model => model.tipodocumento)
                   @Html.ValidationMessageFor(model => model.tipodocumento)
                   </div>
                </td> *@           
                <td><b style="color: #000">N°Documento
                   <div class="editor-label">
                   @*@Html.LabelFor(model => model.numdocumento)*@
                   </div>
                </td>
                <td>
                     <div class="editor-field">
                     @Html.EditorFor(model => model.numdocumento)
                     @Html.ValidationMessageFor(model => model.numdocumento)
                     </div>
                </td>
            </tr> 
            
            <tr>
                <td><b style="color: #000">Procedencia
                    <div class="editor-label">
                    @*@Html.LabelFor(model => model.procedencia)*@
                    </div>
                </td>

                <td>
                    <div class="editor-field">
                    @Html.EditorFor(model => model.procedencia)
                    @Html.ValidationMessageFor(model => model.procedencia)
                    </div>
                </td>
            </tr>
            <tr>
                <td><b style="color: #000">Asunto
                    <div class="editor-label">
                    @*@Html.LabelFor(model => model.asunto)*@
                    </div>
                </td>

                <td>
                    <div class="editor-field">
            @Html.EditorFor(model => model.asunto)
            @Html.ValidationMessageFor(model => model.asunto)
        </div>
                </td>
            </tr> 
            <tr>
                <td><b style="color: #000">Folios
                    <div class="editor-label">
            @*@Html.LabelFor(model => model.folios)*@
        </div>
                </td>
                <td>
                    <div class="editor-field">
            @Html.EditorFor(model => model.folios)
            @Html.ValidationMessageFor(model => model.folios)
        </div>
                </td>
            </tr>
            
            <tr>
                <td><b style="color: #000">Telefono
                    <div class="editor-label">
            @*@Html.LabelFor(model => model.telefono)*@
        </div>
                </td>

                <td>
                     <div class="editor-field">
            @Html.EditorFor(model => model.telefono)
            @Html.ValidationMessageFor(model => model.telefono)
        </div>
                </td>
            </tr>
            
            <tr>
                <td><b style="color: #000">Observacion
                    <div class="editor-label">
           @* @Html.LabelFor(model => model.observacion)*@
        </div>
                </td>

                <td>
                     <div class="editor-field">
            @Html.EditorFor(model => model.observacion)
            @Html.ValidationMessageFor(model => model.observacion)
        </div>
                </td>
            </tr>
            <tr>
                <td>
                    @*<b style="color: #000">Ingresar Material*@
                </td>
                <td><b style="color: #000">Ingresar Material</td>
            </tr>
            <tr>
                <td><b style="color: #000">Cantidad
                    <div class="editor-label">
           @* @Html.LabelFor(model => model.cantidad)*@
        </div>
                </td>

                <td>
                      <div class="editor-field">
            @Html.EditorFor(model => model.cantidad)
            @Html.ValidationMessageFor(model => model.cantidad)
        </div>
                </td>
              
                        
                <td> <b style="color: #000">Descripcion
                    <div class="editor-label">
           @* @Html.LabelFor(model => model.descripcion)*@
        </div>
                </td>

                <td>
                     <div class="editor-field">
            @Html.EditorFor(model => model.descripcion)
            @Html.ValidationMessageFor(model => model.descripcion)
        </div>
                </td>
            </tr>

           @* <tr>
                <td>
                    <div class="editor-label">
            @Html.LabelFor(model => model.codunidad)
        </div>
                </td>

                <td>
                      <div class="editor-field">
            @Html.EditorFor(model => model.codunidad)
            @Html.ValidationMessageFor(model => model.codunidad)
        </div>
                </td>
            </tr>*@

         @*   <tr>
                <td>

                    <div class="editor-label">
            @Html.LabelFor(model => model.codestino)
        </div>
                </td>

                <td>
                    <div class="editor-field">
            @Html.EditorFor(model => model.codestino)
            @Html.ValidationMessageFor(model => model.codestino)
        </div>
                </td>
            </tr>*@
                    

        </table>       

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
   @* @Scripts.Render("~/bundles/jqueryval")*@

     <script type="text/javascript">
         $(function () {
             $('#folios').width('40');
             $('#codtipodocumento').width('150');
             $('#asunto').width('490');
             $('#observacion').width('490');
         });
    </script>
}

